-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed BindingManager to make sure it doesn't use invalid context #17393
Merged
Damian-Nordic
merged 9 commits into
project-chip:master
from
kkasperczyk-no:binding_manager_context_delete
Apr 27, 2022
Merged
Fixed BindingManager to make sure it doesn't use invalid context #17393
Damian-Nordic
merged 9 commits into
project-chip:master
from
kkasperczyk-no:binding_manager_context_delete
Apr 27, 2022
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kkasperczyk-no
force-pushed
the
binding_manager_context_delete
branch
from
April 14, 2022 12:18
bd062f8
to
e1801d2
Compare
pullapprove
bot
requested review from
andy31415,
anush-apple,
austinh0,
Byungjoo-Lee,
bzbarsky-apple,
carol-apple,
chrisdecenzo,
chshu,
chulspro,
Damian-Nordic,
dhrishi,
electrocucaracha,
emargolis,
erjiaqing,
franck-apple,
gjc13,
harimau-qirex,
hawk248,
harsha-rajendran,
isiu-apple,
jelderton,
jepenven-silabs,
jmartinez-silabs,
lazarkov,
LuDuda,
lzgrablic02 and
mrjerryjohns
April 14, 2022 12:25
context and release it in the proper moment.
kkasperczyk-no
force-pushed
the
binding_manager_context_delete
branch
from
April 20, 2022 13:00
5b38220
to
3c1541f
Compare
LuDuda
approved these changes
Apr 20, 2022
PR #17393: Size comparison from 66333a9 to 3c1541f Increases (10 builds for cc13x2_26x2, esp32, linux, nrfconnect, p6, telink)
Decreases (1 build for cc13x2_26x2)
Full report (40 builds for cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
|
bzbarsky-apple
requested changes
Apr 20, 2022
kkasperczyk-no
force-pushed
the
binding_manager_context_delete
branch
from
April 26, 2022 11:58
1b95d40
to
146cc57
Compare
PR #17393: Size comparison from 7148111 to 93cbff9 Increases (2 builds for linux, telink)
Full report (9 builds for cyw30739, k32w, linux, mbed, telink)
|
kkasperczyk-no
force-pushed
the
binding_manager_context_delete
branch
from
April 26, 2022 12:38
93cbff9
to
b6deb4d
Compare
PR #17393: Size comparison from 7148111 to b6deb4d Increases (10 builds for cc13x2_26x2, esp32, linux, nrfconnect, p6, telink)
Decreases (1 build for cc13x2_26x2)
Full report (40 builds for cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
|
pullapprove
bot
requested review from
turon and
mspang
and removed request for
lzgrablic02 and
austinh0
April 26, 2022 21:26
bzbarsky-apple
approved these changes
Apr 27, 2022
kkasperczyk-no
force-pushed
the
binding_manager_context_delete
branch
from
April 27, 2022 06:29
262a9ee
to
23174a8
Compare
@bzbarsky-apple thank you for hints and very helpful review. |
PR #17393: Size comparison from 99988e5 to 23174a8 Increases (7 builds for cc13x2_26x2, esp32, linux, nrfconnect, p6, telink)
Decreases (1 build for cc13x2_26x2)
Full report (31 builds for cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
BindingManager uses application context passed to
NotifyBoundClusterChanged and doesn't care about its life time.
Applications delete the context after calling the method, so if
the context will be used asynchronously (like for HandleDeviceConnect)
it may have invalid value.
Change overview
called when context is not used anymore and can be released.
handler.
Testing
Tested manually with nrfconnect light switch app and chiptool.